home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Notification.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  2.1 KB  |  75 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Notification.a
  3. ;
  4. ;    Contains:    Notification Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__NOTIFICATION__') = 'UNDEFINED' THEN
  19. __NOTIFICATION__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  25.     include 'OSUtils.a'
  26.     ENDIF
  27.  
  28.  
  29.  
  30. ; typedef NMRec *                        NMRecPtr
  31.  
  32. NMRec                    RECORD 0
  33. qLink                     ds.l    1                ; offset: $0 (0)        ;  next queue entry
  34. qType                     ds.w    1                ; offset: $4 (4)        ;  queue type -- ORD(nmType) = 8
  35. nmFlags                     ds.w    1                ; offset: $6 (6)        ;  reserved
  36. nmPrivate                 ds.l    1                ; offset: $8 (8)        ;  reserved
  37. nmReserved                 ds.w    1                ; offset: $C (12)        ;  reserved
  38. nmMark                     ds.w    1                ; offset: $E (14)        ;  item to mark in Apple menu
  39. nmIcon                     ds.l    1                ; offset: $10 (16)        ;  handle to small icon
  40. nmSound                     ds.l    1                ; offset: $14 (20)        ;  handle to sound record
  41. nmStr                     ds.l    1                ; offset: $18 (24)        ;  string to appear in alert
  42. nmResp                     ds.l    1                ; offset: $1C (28)        ;  pointer to response routine
  43. nmRefCon                 ds.l    1                ; offset: $20 (32)        ;  for application use
  44. sizeof                     EQU *                    ; size:   $24 (36)
  45.                         ENDR
  46. ;
  47. ; pascal OSErr NMInstall(NMRecPtr nmReqPtr)
  48. ;
  49.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  50.         ; parameters:
  51.         ;    nmReqPtr        => A0
  52.         ; returns:
  53.         ;    OSErr           <= D0
  54.         _NMInstall:    OPWORD    $A05E
  55.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  56.         IMPORT_CFM_FUNCTION NMInstall
  57.     ENDIF
  58.  
  59. ;
  60. ; pascal OSErr NMRemove(NMRecPtr nmReqPtr)
  61. ;
  62.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  63.         ; parameters:
  64.         ;    nmReqPtr        => A0
  65.         ; returns:
  66.         ;    OSErr           <= D0
  67.         _NMRemove:    OPWORD    $A05F
  68.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  69.         IMPORT_CFM_FUNCTION NMRemove
  70.     ENDIF
  71.  
  72.  
  73.     ENDIF ; __NOTIFICATION__ 
  74.  
  75.